<extend name="Layout/application" xmlns="http://www.w3.org/1999/html"/>

<block name="content">
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>系统首页</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading" align="center">
                            <h2>修改密码</h2>
                        </div>
                        <div class="alert alert-danger" role="alert" style="display: none"></div>


                        <div class="panel-body">
                            <form class="form-horizontal" role="form" method="post" action="{{:U('do_password')}}">
                                <input type="hidden" name="id" value="{{$user.id}}">
                                <div class="form-group">
                                    <label for="email" class="col-sm-2 control-label">用户名</label>
                                    <div class="col-sm-10">
                                        <input type="email" class="form-control" name="email" id="email" disabled placeholder="email" value="{{$user.email}}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="old_password" class="col-sm-2 control-label">旧密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" class="form-control"name="old_password" id="old_password" placeholder="请输入新密码">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="password" class="col-sm-2 control-label">新密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" class="form-control"name="password" id="password" placeholder="请输入新密码">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="check_password" class="col-sm-2 control-label">确认新密码</label>
                                    <div class="col-sm-10">
                                        <input type="password" class="form-control"name="check_password" id="check_password" placeholder="请确认密码">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-success submit">修改</button>
                                    </div>
                                </div>
                            </form>



                        </div>
                    </div>
                </div>



            </div>
        </div>
    </div>
</block>

